﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 分隔字符串
{
    class Program
    {
        static void Main(string[] args)
        {
            string str = "OK\r\n+STACH:0\r\n";
            str = str.Substring(0, str.Length - 1);
            string[] arr = str.Split('\n');
            foreach(var s in arr)
            {
                Console.WriteLine(s);
            }

            Console.ReadKey();
        }
    }
}
